import Vue from 'vue'
import Vuex from 'vuex'
import audioInfo from './modules/audioInfo'
import musicInfo from './modules/musicInfo'
import sheetInfo from './modules/sheetInfo'
Vue.use(Vuex);

const store = new Vuex.Store({
  state:{
    allInfo:[]
  },
  getters:{
    getAllInfo: state => state.allInfo
  },
  mutations:{
    setAllInfo(state,obj){
      state.allInfo = obj;
    }
  },
  actions:{
    set_AllInfo({commit},obj){
      commit('setAllInfo',obj);
    }
  },
  modules:{
    audioInfo,
    musicInfo,
    sheetInfo
  }
})

export default store
